<?php 

if(!defined('ADMIN')){
	exit('Access Denied');
}



if($modelid==2){
    $mname="新闻";
}elseif($modelid==11){
  $mname="产品";  
}else{
    $mname="内容";
}

?>
<div class="pageHeader">
	<p class="topnam"><b>招聘信息 </b></p>
</div>
<form id="pagerForm" method="post" action="#rel#">
	<input type="hidden" name="pageNum" value="<?=$page?>" />
	<input type="hidden" name="numPerPage" value="<?=$pagesize?>" />
	<input type="hidden" name="orderField" value="<?=$orderField?>" />
	<input type="hidden" name="orderDirection" value="<?=$orderDirection?>" />
</form>
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="<?=u(MOD,'list',array('q'=>$q,'catid'=>$catid,'status'=>$status))?>" method="post">
	<div class="searchBar">
		<ul class="searchContent">
        <table class="searchContent">
        <tr><td>查询内容：<input type="text" name="q" value="<?=$q?>" /></td>
        <td><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></td>
        </tr>
        </table>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
            <?if($ezhand->check_menu_access(MOD,'addedipage')){?>
			<li><a class="add" href="<?=u(MOD,'addedipage',array("catid"=>$catid))?>" target="navTab" rel="addedipage<?=$catid?>" title="新增内容"><span>新增内容</span></a></li>
            <?}?>
            <?if($ezhand->check_menu_access(MOD,'delpage')){?>
			<li><a title="确实要删除选择的内容吗?" target="selectedTodo" rel="ids[]" href="<?=u(MOD,'delpage')?>" class="delete"><span>删除</span></a></li>
            <?}?>
            <?if($ezhand->check_menu_access(MOD,'addedipage')){?>
			<li><a class="edit" href="<?=u(MOD,'addedipage',array('id'=>'{id}',"catid"=>$catid))?>"  target="navTab" rel="addedipage<?=$catid?>" warn="请选择一条记录"><span>修改</span></a></li>
            <?}?>
			<li class="line">line</li>
           
            <?if($ezhand->check_menu_access(MOD,'passok')){?>
             <li class="line">line</li>
            <li><a title="确实要审核通过选择的内容吗?" target="selectedTodo" rel="ids[]" href="<?=u(MOD,'passok')?>" class="passok"><span>通过审核</span></a></li>
            <?}?>
            <?
            if($ezhand->check_menu_access(MOD,'cancel')){
            ?>            
            <li><a title="确实要拒绝审核所选择的内容吗?" target="selectedTodo" rel="ids[]" href="<?=u(MOD,'cancel')?>" class="cancel"><span>拒绝审核</span></a></li>
            <li class="line">line</li>
            <?
            }
            ?>            
            
            <li class="line">line</li>
            <li><a title="已发布内容列表" target="navTab" rel="page<?=$catid?>" href="<?=u(MOD,'list',array("catid"=>$catid,"status"=>99))?>" class="list99"><span>已发布内容列表<? if($statuscount[99]>0){ echo "<font color=red>[".$statuscount[99]."]</font>";}?></span></a></li>
            <li><a title="待审核列表" target="navTab" rel="page<?=$catid?>" href="<?=u(MOD,'list',array("catid"=>$catid,"status"=>1))?>" class="list01"><span>待审核列表 <? if($statuscount[1]>0){ echo "<font color=red>[".$statuscount[1]."]</font>";}?></span></a></li>  
            <li><a title="草稿" target="navTab" rel="page<?=$catid?>" href="<?=u(MOD,'list',array("catid"=>$catid,"status"=>0))?>" class="list00"><span>草稿 <? if($statuscount[0]>0){ echo "<font color=blue>[".$statuscount[0]."]</font>";}?></span></a></li>  
            <li><a title="未通过审核列表" target="navTab" rel="page<?=$catid?>" href="<?=u(MOD,'list',array("catid"=>$catid,"status"=>14))?>" class="list14"><span>作废列表 <? if($statuscount[14]>0){ echo "<font color=gray>[".$statuscount[14]."]</font>";}?></span></a></li>          
		</ul>
	</div>

	<table class="table" width="100%" layoutH="148">
		<thead>
			<tr>
                <th width="25"><input type="checkbox" group="ids[]" class="checkboxCtrl"></th>
               	<th width="50" class="center" orderField="id" <? if($orderField=="id"){?>class="<?=$orderDirection?>"<?}?>>ID</th>    
				<th width="150" class="center">职位名称</th>
                <th width="250" class="center">单位名称</th>
                <th width="100" class="center">工作地点</th>
                <th width="100" class="center">招聘人数</th>
                <th width="150" class="center">月薪</th>
                <th width="" class="center">专业要求</th>
                <th width="100">更新时间</th>
                <th width="100">操作</th>
			</tr>
		</thead>
        <tbody>
        <?
       if(!empty($row)){
        while(list($k,$v)=each($row)){
                            
        ?>
			<tr target="id"  rel="<?=$v["id"]?>">
				<td class="center"><input name="ids[]" value="<?=$v["id"]?>" type="checkbox" /></td>
				<td class="center"><?=$v["id"]?></td>        
                <td class="center"><a title="查看" target="dialog" href="index.php?mod=content&act=viewjobs&id=<?=$v["id"]?>" style="font-weight: 700;"><?=$v["title"]?></a></td>
				<td class="center"><?=$v["company"]?></td>
				<td class="center"><?=$v["area_province"]?></td>
                
                <td class="center"><?=$v["numbers"]?></td>
                <td class="center"><?=$v["money"]?></td>
                <td class="center"><?=$v["profession"]?></td>
                
				<td class="center"><?=date("Y-m-d",$v["updatetime"])?></td>
         
                <td class="center"><a title="应聘" target="dialog" href="index.php?mod=content&act=viewjobs&id=<?=$v["id"]?>" rel="askjobs" class="btnView">应聘</a>
                </td>
			</tr>
    <?
    }
    }
    ?>
		</tbody>
	</table>            
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})" id="PageSize">
				<option value="20" <? if($pagesize==20){ echo 'selected="true"';}?>>20</option>
				<option value="50" <? if($pagesize==50){ echo 'selected="true"';}?>>50</option>
				<option value="100" <? if($pagesize==100){ echo 'selected="true"';}?>>100</option>
				<option value="200" <? if($pagesize==200){ echo 'selected="true"';}?>>200</option>
			</select>
			<span>条，共<?php echo $total;?>条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="<?php echo $total;?>" numPerPage="<?=$pagesize?>" pageNumShown="10" currentPage="<?=$page?>"></div>

	</div>

  
</div>    
